package cn.mumzone.pos.presenter.contract;

import cn.mumzone.basic.mvp.BasePresenter;
import cn.mumzone.basic.mvp.BaseView;
import cn.mumzone.pos.model.MemberEntity;

public interface MemberAddOrModifyContract {

    interface View extends BaseView {

        void onCreateOrModifyMemberInfoSuccess(MemberEntity memberEntity, boolean isAppend);

        void onCreateOrModifyMemberInfoFailed(boolean isAppend,String errorMsg);
    }

    interface Presenter extends BasePresenter<View> {
        boolean isInputLegal(String toString, String toString1, String selectedLevel);

        void createOrModifyMemberInfo(String name, String phone, String selectedGender, String level, String age,
                                      String relation, String status, String dueDate, String memberId);
    }
}
